import request from './request'
import type { dataupload } from '@/components/util/dataupload'

export function clockIn(data: dataupload) {
  return request({
    url: '/clock/save',
    method: 'post',
    data: data,
  })
}

export function getClockInList(data: string) {
  return request({
    url: '/clock/query?scheduleId=' + data,
    method: 'get',
  })
}

export function getTodayClockIn(data: String) {
  return request({
    url: '/clock/query/today?scheduleId=' + data,
    method: 'get',
  })
}
